#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
void Bubblessort(int* arr, size_t sz)
{
	size_t end = sz;
	int count = 0;
	for (end = 1; end < sz; end++)
	{
		int i = 0;
		for (i = 0; i < sz - end; i++)
		{
			if (arr[i] > arr[i + 1])
			{
				int tmp = arr[i + 1];
				arr[i + 1] = arr[i];
				arr[i] = tmp;
			}
		}
	}
}

void print(int* arr, size_t sz)
{
	int i = 0;
	for (i = 0; i < sz; i++)
	{
		printf("%d ", arr[i]);
	}
}

int main()
{
	int arr[] = { 2,45,6,7,8,9,0,12,34,65,23 };
	size_t sz = sizeof(arr) / sizeof(arr[0]);
	Bubblessort(arr, sz);
	print(arr, sz);
	return 0;
}